package date_;

import java.time.Instant;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author wly
 * @version V1.0.0
 * @date 2022/12/24 10:49
 */
public class Instant01 {
    public static void main(String[] args) {
        Instant now = Instant.now();
        Date from = Date.from(now);
        System.out.println(from);
        Instant instant = from.toInstant();
        System.out.println(instant);
        System.out.println(now);
        System.out.println(LocalDateTime.now());
    }
}
